<?php

include ("include.php");
check_security(2);

// ~~~~~ Load all GET and POST variables into array ~~~~~

$HTTP_REQUEST_VARS = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS);

// ~~~~~ Redirect user to loglogin.php if he tried to open log.php directly ~~~~~


// ~~~~~ Include shared functions ~~~~~


include "../../counter/phphits.inc.php";

// ~~~~~ Set general variables ~~~~~

if (!isset($HTTP_REQUEST_VARS["sortby"]))
{
	$HTTP_REQUEST_VARS["sortby"] = "rowid";
}
if (!isset($HTTP_REQUEST_VARS["mode"]))
{
	$HTTP_REQUEST_VARS["mode"] = "desc";
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Traweva, Trang Web Vang, Thiet ke web, domain name, dang ky ten mien" name=keywords>
<META content="Traweva - Trang Web Vang" name=description>
<title>Counter</title>
<link rel="stylesheet" type="text/css" href="../../counter/style.css">
</head>


<?php
// ~~~~~ Check if login data is valid and go to selected area ~~~~~
phphitsShowLog($HTTP_REQUEST_VARS["sortby"], $HTTP_REQUEST_VARS["mode"]);
?>

</body>
</html>